/*
 * @Author: Superficial
 * @Date: 2021-11-05 15:19:27
 * @LastEditTime: 2021-11-05 17:17:34
 * @Description:
 */

import type { GeneralKeyValue } from '../general'
import { ArticleLanguage } from './language'
// import type { Tag } from "../tag";
// import type { Category } from "../category";
import type { PublishState } from '../publish'
import type { ArticleOrigin } from './origin'
import type { ArticlePublic } from './public'

export type ArticleId = string | number

/** 文章 */
export interface Article {
  id?: number
  _id?: string
  slug: string | null
  title: string
  content?: string
  description: string
  keywords: string[]
  thumbnail?: string
  tag: Array<string>
  category: Array<string | number>
  origin: ArticleOrigin
  public: ArticlePublic
  state: PublishState
  lang: ArticleLanguage
  disabled_comment: boolean
  meta?: {
    likes: number
    views: number
    comments: number
  }
  update_at?: string
  create_at?: string
  extends: Array<GeneralKeyValue>
}
